package com.molichuxing.services.infrastructure.dao;


import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.AdvertisingInfoBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdvertisingInfoMapper extends RootMapper<AdvertisingInfoBean> {

    /**
     * 根据广告id查询广告信息
     * @param advertId
     * @return
     */
    List<AdvertisingInfoBean> getAdvertisingInfoList(@Param("advertId")Integer advertId);

    /**
     * 根据广告id和标识 查询广告信息
     * @param storeId
     * @param media
     * @return
     */
	List<AdvertisingInfoBean> getAdvertisingInfoByMedia(@Param("advertId")Integer advertId, @Param("media")String media);

	/**
	 * 逻辑删除素材信息
	 * @param advertId
	 * @return
	 */
	int deleteByAdvertId(@Param("advertId")Integer advertId);
}